package com.lanou3g.code0512;

import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;

/**
 * If there are no bugs, it was created by Chen FengYao on 2018/5/12;
 * Otherwise, I don't know who created it either
 */

public class Main {
    public static void main(String[] args) {
        String a = "我";
        try {
           String b =  URLEncoder.encode(a,"gbk");
            System.out.println(b);
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
    }
}
